﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CompanyManagement.ascx.cs" Inherits="NLUNZ.UserControls.CompanyManagement" %>
<%@ Register assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.WebControls" tagprefix="asp" %>
<asp:gridview runat="server" DataSourceID="LinqDataSource1" 
    EnableModelValidation="True" AutoGenerateColumns="False" CellPadding="4" 
    DataKeyNames="ID" ForeColor="#333333" GridLines="None" Width="100%" 
    AllowPaging="True" AllowSorting="True">
    <AlternatingRowStyle BackColor="White" />
    <Columns>
        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" 
            ShowSelectButton="True"></asp:CommandField>
        <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" 
            SortExpression="ID">
            <ItemStyle Width="80px" />
        </asp:BoundField>
        <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name">
            <ItemStyle Width="160px" />
        </asp:BoundField>
        <asp:BoundField DataField="Code" HeaderText="Code" SortExpression="Code">
            <ItemStyle Width="100px" />
        </asp:BoundField>        
        <asp:BoundField DataField="CompanyTrackingCode" 
            HeaderText="Tracking Code" SortExpression="CompanyTrackingCode">
            <ItemStyle Width="120px" />
        </asp:BoundField>
        <asp:BoundField DataField="Website" HeaderText="Website" 
            SortExpression="Website"></asp:BoundField>

    </Columns>
    <EditRowStyle BackColor="#2461BF" />
    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Height="35px" />
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle BackColor="#EFF3FB" />
    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
</asp:gridview>
<asp:LinqDataSource ID="LinqDataSource1" 
    ContextTypeName="NLUNZ.Business.NLUDBDataContext" TableName="Companies" runat="server" 
    EnableDelete="True" EnableInsert="True" EnableUpdate="True">
</asp:LinqDataSource>

